﻿define(['plugins/dialog', 
        'toastr'], 
	function (dialog, toastr) {
	
    var viewDetail = function () {
    	this.title = "Popup Demo 2";
    	
    	this.okButtonText = 'Submit';
    	this.additionalButtonTitle = 'Additional Button';
    	
    	this.formErrors = ko.observableArray();
    };

    viewDetail.prototype.close = close;
    viewDetail.prototype.submit = submit;
    viewDetail.prototype.submit2 = submit2;
    
    return viewDetail;
    
    function close() {
        dialog.close(this);
    }

    function submit() {
    	toastr.success('Are you the six fingered man?', 'Inigo Montoya');
    }
    
    function submit2() {
    	toastr.info('Are you the six fingered man?');
    }
});